//
//  WSIdentifyCell.m
//  WisdomStar
//
//  Created by 谭飞 on 2018/10/30.
//  Copyright © 2018年 zhangliwen. All rights reserved.
//

#import "WSIdentifyCell.h"

@interface WSIdentifyCell ()
@property (weak, nonatomic) IBOutlet UIButton *uploadBtn;


@end

@implementation WSIdentifyCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.uploadBtn.layer.cornerRadius = self.uploadBtn.xmg_height/2;
    self.uploadBtn.layer.masksToBounds = YES;
    
    [self addGesture];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)addGesture {
    WEAKSELF
    [self.coverImage addGestureWithGestureType:WJ_TapGesture completeHandler:^{
        if (weakSelf.selectImageHandle) {
            weakSelf.selectImageHandle();
        }
    }];
}

- (IBAction)uploadBtnClick:(id)sender {
    if (self.didTapBlock) {
        self.didTapBlock(self, self.index);
    }
}



@end
